using AutoMapper;
using Terra.Data.Entities.Identity;
using Terra.Service.Identity.DTOs;

namespace Terra.Service.Common.Mappers;

/// <summary>
/// AutoMapper 配置文件
/// </summary>
public class AutoMapperProfile : Profile
{
    /// <summary>
    /// 构造函数，配置映射关系
    /// </summary>
    public AutoMapperProfile()
    {
        // 用户相关映射
        CreateMap<User, UserDto>();
        CreateMap<UserDto, User>();
    }
}